<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.label" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeRecommend",
  props: {
    recommends: {
      type: Array,
      defualt() {
        return []
      }
    }
  }
}
</script>

<style scoped>
.recommend {
  display: flex;
  text-align: center;
  font-size: 12px;
  padding: 5px 0 10px;
  border-bottom: 5px solid #eee;
}

.recommend-item {
  flex: 1;
}

.recommend img {
  width: 70px;
  height: 80px;
  margin-bottom: 5px;
}
</style>